package com.homework;

import java.util.ArrayList;
import java.util.Collections;

public class TeST05 {
    public static void main(String[] args) {
        ArrayList<Integer> objects = new ArrayList<>();
        Collections.addAll(objects,33,11,77,55);
        Collections.sort(objects);//排序
        System.out.println(objects);
        Collections.shuffle(objects);//打乱
        System.out.println(objects);
        Collections.reverse(objects);//反转
        for (Integer object : objects) {
            System.out.println(object);
        }
    }
}
